<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<!-- 
    v-show:
    隐藏：display:none
    显示:移除display:none

    v-if:
    隐藏:删除元素     显示:添加元素
 -->
<body>
    <div id="app">
        <p v-show="show">show</p>
        <p v-if="show">if</p>
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
               show:true

            }
        })
    </script>
</body>
</html>